package com.nf.dao;

import com.nf.entity.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Text {
    public static void main(String[] args){
        ApplicationContext ac= new ClassPathXmlApplicationContext("applictionContext.xml");
        User user = (User) ac.getBean("aa");
        System.out.println(user.getUserName());
        System.out.println(user.getOamei().getGuoName());
        System.out.println(user.getPian().getPrice());
    }
}
